//
//  XCMyCollectionTableViewCell.m
//  SoundOfNature
//
//  Created by 梁新昌 on 16/3/12.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCMyCollectionTableViewCell.h"

@implementation XCMyCollectionTableViewCell


- (void)dealloc {
    
    [_myCollectionLable release];
    [_buildButton release];
    [super dealloc];
    
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.myCollectionLable = [[XCBaseLable alloc] initWithFrame:CGRectZero];
        self.buildButton = [UIButton buttonWithType:UIButtonTypeSystem];
        
        [self.contentView addSubview:self.myCollectionLable];
        [self.contentView addSubview:self.buildButton];
        
        [self.myCollectionLable release];
        
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.myCollectionLable.frame = CGRectMake(20, 0, self.bounds.size.width / 2, 21);
    self.myCollectionLable.text = @"我的歌单";
    self.buildButton.frame = CGRectMake(self.bounds.size.width - 50, 0, 50, 21);
//    [self.buildButton setTitle:@"新建" forState:UIControlStateNormal];
    
    
    
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
